{% extends 'database/base.html' %}

{% block title_content %}菜品信息{% endblock %}

{% block body_content %}
<h1 class="display-1">普通用户{{name}}的菜品列表</h1>
    <table class="table">
        <thead>
            <tr>
                <th>ID</th>
                <th>商铺ID</th>
                <th>名字</th>
                <th>单价</th>
                <th>订餐</th>
            </tr>
        </thead>
        <tbody>
            {% for item in object_list %}
            <tr>
                <td>{{ item.id }}</td>
                <td>{{ item.sto_id }}</td>
                <td>{{ item.name }}</td>
                <td>{{ item.price }}</td>
                <td><a href="{% url 'delivery_database:normal_user_food_order' id item.pk %}" >点击订餐</a></td>
            </tr>
            {% empty %}
                <tr>
                    <td colspan="4">暂无数据</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
<p>
    <a class="btn btn-primary" href="{% url 'delivery_database:normal_user_menu' id %}">返回</a>
</p>
{% endblock %}